package com.mccrea.pattern.visitor;

import java.util.Random;

/**
 * @Classname Manager
 * @Description 经理类
 * @Date 2021/5/20 0020 14:14
 * @Created by Mccrea_Gao
 */
public class Manager extends Staff {
    public Manager(String name) {
        super(name);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    // 经理产品数
    public int getProducts(){
        return new Random().nextInt(10);
    }
}
